package com.gjy.mongod.domain;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.gjy.mongod.config.LocalDateTimeDeserializer;
import lombok.Data;
import org.springframework.data.annotation.Id;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-07-15 10:13:42
 */
@Data
public class Book implements Serializable {

    @Id
    private Long id;
    private String name;
    private String author;
    private BigDecimal price;
    private String press;
    private String number;
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime date;
}
